<?php

return [
    'class'    => 'yii\db\Connection',
    //        'dsn' => 'mysql:host=172.18.0.3;dbname=yii2basic',
    //    'tablePrefix' => 'basic_', // 设置表前缀
    //    'dsn'      => 'mysql:host=172.18.0.4;dbname=yii2basic',
    'dsn'      => 'mysql:host=172.18.0.2;dbname=yii2basic',
    'username' => 'root',
    'password' => '123456',
    'charset'  => 'utf8',

    // Schema cache options (for production environment)
    //'enableSchemaCache' => true,
    //'schemaCacheDuration' => 60,
    //'schemaCache' => 'cache',
];
